package com.edais.service.imp;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.edais.dao.UserChannelPointDao;
import com.edais.domain.UserChannelPoint;
import com.edais.service.UserChannelPointService;

@Service

public class UserChannelPointServiceImpl implements UserChannelPointService {
	
	private static final Log logger = LogFactory.getLog(UserChannelPointService.class);
	
	@Autowired
	private UserChannelPointDao userChannelPointDao;

	@Override
	public UserChannelPoint findChannelPointByParm(Map<String, Object> parm)
			throws Exception {
		return userChannelPointDao.findChannelPointByParm(parm);
	}

	@Override
	public void addChannelPoint(UserChannelPoint userChannelPoint)
			throws Exception {
		userChannelPointDao.addChannelPoint(userChannelPoint);		
	}

	@Override
	public int updateChannelPoint(UserChannelPoint userChannelPoint)
			throws Exception {
		return userChannelPointDao.updateChannelPoint(userChannelPoint);
	}
	

}

